<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
	<div id="xd_dlg" class="easyui-dialog" title="临时限电" style="width:100%;height:500px;max-width:230px;padding:10px" >
		当前检测负荷:
		<br><a  id="dqjcfh">599.7</a>
		<br>预期负荷:
		<br><a id="yqfh">299</a>	
	
		<br><br>临时限电投入时间:<select class="easyui-combobox" name="state" style="width:60px;">
							<option value="AL1">1</option>
							<option value="AK1">2</option>
							<option value="AZ1">3</option>
							<option value="AR1">4</option>
							<option value="CA1">5</option>
							<option value="AL2">6</option>
							<option value="AK2">7</option>
							<option value="AZ2">8</option>
							<option value="AR2">9</option>
							<option value="CA2">10</option>
							<option value="AL11">11</option>
							<option value="AK11">12</option>
							<option value="AZ11">13</option>
							<option value="AR11">14</option>
							<option value="CA11">15</option>
							<option value="AL12">16</option>
							<option value="AK12">17</option>
							<option value="AZ12">18</option>
							<option value="AR12">19</option>
							<option value="CA12">20</option>
							<option value="AL13">21</option>
							<option value="AK13">22</option>
							<option value="AZ13">23</option>
							<option value="AR13">24</option>
							<option value="CA13">25</option>
							<option value="AL14">26</option>
							<option value="AK14">27</option>
							<option value="AZ14">28</option>
							<option value="AR14">29</option>
							<option value="CA14">30</option>
							<option value="AL15">31</option>
							<option value="AK15">32</option>
							<option value="AZ15">33</option>
							<option value="AR15">34</option>
							<option value="CA15">35</option>
							<option value="AL16">36</option>
							<option value="AK16">37</option>
							<option value="AZ16">38</option>
							<option value="AR16">39</option>
							<option value="CA16">40</option>
							<option value="AL1a">41</option>
							<option value="AK1a">42</option>
							<option value="AZ1a">43</option>
							<option value="AR1a">44</option>
							<option value="CA1a">45</option>
							<option value="AL1s">46</option>
							<option value="AK1s">47</option>
							<option value="AZ1s">48</option>
							<option value="AR1s">49</option>
							<option value="CA1s">50</option>
							<option value="AL1d">51</option>
							<option value="AK1d">52</option>
							<option value="AZ1d">53</option>
							<option value="AR1d">54</option>
							<option value="CA1d">55</option>
							<option value="AL1q">56</option>
							<option value="AK1q">57</option>
							<option value="AZ1q">58</option>
							<option value="AR1q">59</option>
							<option value="CA1q">60</option>
						</select>
		<br><br>对象限电下浮系数:<input  id = "faultProdNumber" class="easyui-numberspinner" value="50" style="width:60px;"  data-options="min:1,max:256,required:true,increment:1" style="width:60px;"></input>
		<br><br>&nbsp第一轮警告时间&nbsp&nbsp:<select class="easyui-combobox" name="state" style="width:60px;">
							<option value="AL1">5</option>
							<option value="AK1">10</option>
							<option value="AZ1">15</option>
							<option value="AR1">20</option>
							<option value="CA1">25</option>
							<option selected="selected" value="AL2">30</option>
							<option value="AK2">35</option>
							<option value="AZ2">40</option>
							<option value="AR2">45</option>
							<option value="CA2">50</option>
							<option value="AL3">55</option>
							<option value="AK3">60</option>
							<option value="AZ3">65</option>
							<option value="AR3">70</option>
							<option value="CA3">75</option>
						</select>
		<br><br>&nbsp第二轮警告时间&nbsp&nbsp:<select class="easyui-combobox" name="state" style="width:60px;">
							<option value="AL1">5</option>
							<option value="AK1">10</option>
							<option value="AZ1">15</option>
							<option value="AR1">20</option>
							<option value="CA1">25</option>
							<option  value="AL2">30</option>
							<option value="AK2">35</option>
							<option value="AZ2">40</option>
							<option value="AR2">45</option>
							<option value="CA2">50</option>
							<option value="AL3">55</option>
							<option value="AK3">60</option>
							<option value="AZ3">65</option>
							<option value="AR3">70</option>
							<option value="CA3">75</option>
						</select>
		<br><br>&nbsp第三轮警告时间&nbsp&nbsp:<select class="easyui-combobox" name="state" style="width:60px;">
							<option value="AL1">5</option>
							<option value="AK1">10</option>
							<option value="AZ1">15</option>
							<option value="AR1">20</option>
							<option value="CA1">25</option>
							<option  value="AL2">30</option>
							<option value="AK2">35</option>
							<option value="AZ2">40</option>
							<option value="AR2">45</option>
							<option value="CA2">50</option>
							<option value="AL3">55</option>
							<option value="AK3">60</option>
							<option value="AZ3">65</option>
							<option value="AR3">70</option>
							<option value="CA3">75</option>
						</select>
		<br><br>&nbsp第四轮警告时间&nbsp&nbsp:<select class="easyui-combobox" name="state" style="width:60px;">
							<option value="AL1">5</option>
							<option value="AK1">10</option>
							<option value="AZ1">15</option>
							<option value="AR1">20</option>
							<option value="CA1">25</option>
							<option  value="AL2">30</option>
							<option value="AK2">35</option>
							<option value="AZ2">40</option>
							<option value="AR2">45</option>
							<option value="CA2">50</option>
							<option value="AL3">55</option>
							<option value="AK3">60</option>
							<option value="AZ3">65</option>
							<option value="AR3">70</option>
							<option value="CA3">75</option>
						</select>
			<br><br>&nbsp&nbsp&nbsp&nbsp&nbsp<a href="#" onclick="touru('xd_dlg')" class="easyui-linkbutton" data-options="name:'format',iconCls:'',plain:true">控点投入</a>
			&nbsp&nbsp&nbsp&nbsp&nbsp<a href="#"  onclick="dlg_close('xd_dlg')" class="easyui-linkbutton" data-options="name:'format',iconCls:'',plain:true">控制取消</a>
			<br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
			<a href="#" class="easyui-linkbutton" onclick="dlg_close('xd_dlg')" data-options="name:'format',iconCls:'',plain:true">关闭</a>
	</div>
    <script>
	    var setTop	= function(top,left){
			 var div =  $('#xd_dlg').parent("div");
			 
		}
	
    	$(function(){
    		dlg_close('xd_dlg');
    		$("#dqjcfh").html((605-random(10)).toFixed(1));
    		/* setInterval(() => {
    			$("#dqjcfh").html(($("#dqjcfh").html()-(random(1)-0.5)).toFixed(1));
			}, 5000); */
			
    		$('#faultProdNumber').numberspinner({  
    		       onChange:function(newValue,oldValue){ 
    		 			var value = newValue - oldValue;
    		 			var v = $("#yqfh").html()*1 + value*6;
    		       		$("#yqfh").html(v);
    				}  
    		 });
    	})
    	
    	var random = function(m){
    		var n =	Math.random()*m;
    		return n.toFixed(2);
    	}
    	
    	
    	var dlg_close = function(id){
    	
    		$("#"+id).dialog('close');
    	}
    	var dlg_open = function(id){
        	
    		$("#"+id).dialog('open');
    		
    	}
    	var touru =  function(id){
    		dlg_close(id)
    		;
    		$('#dlg_text').html("已投入")
    		$('#dlg_text').dialog('open')
    	}
    </script>